feat!: v2.0.0 - MCP SDK Upgrade, Write Capabilities & Enhanced Workflows - #21
Merged
Conversation
…version to 2.0.0.
…r transfers, diagnostics, wallet analysis, and approvals, and add an ABI service.
…ance transaction prompts with detailed, safety-focused instructions.
…action diagnosis, and wallet analysis
…n content for token transfer, transaction diagnosis, and wallet analysis.
Member
|
@codex full review |
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…or safe contract interaction.
…monic phrase, centralize wallet logic, and update documentation.
…on to `2.0.0-pre`.
- Add express and @types/express to dependencies for production reliability * Battle-tested error handling and middleware ecosystem * All MCP SDK examples use Express for HTTP transport * Minimal overhead (~50KB) with significant reliability gains - Fix wallet.ts to use viem's documented HDAccount/PrivateKeyAccount types * Use getHdKey() method for extracting private key from mnemonic accounts * Proper type checking instead of unsafe 'as any' casting * Better error messages for debugging - Update bun.lock with express dependencies This ensures all MCP transports (stdio, StreamableHTTP) are production-ready.
Security Fixes: - Add 10mb JSON body size limit to prevent DoS attacks - Validate EVM_ACCOUNT_INDEX to prevent NaN injection - Add HTTP server timeouts (120s request, 65s keepalive) Reliability Fixes: - Implement session cleanup (30min timeout, check every 5min) - Update session timestamps on activity to prevent premature cleanup - Prevent memory leaks from abandoned sessions These changes ensure the server is production-ready and resilient.
…vDdUW8uUosEZ69UWKTd fix: Claude review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: v2.0.0 - MCP SDK Upgrade, Write Capabilities & Enhanced Workflows
Summary
This major release upgrades the server to MCP SDK v2.0.0, introduces full smart contract write capabilities, adds flexible wallet configuration (Mnemonic/HD Wallet), and completely overhauls the AI prompts for better safety and usability.
Key Changes
Core & Infrastructure
Smart Contract Write Support
write_contractTool: Execute any state-changing function on verified contracts.Wallet Configuration
EVM_MNEMONIC).EVM_ACCOUNT_INDEXsupport for deriving accounts.src/core/services/wallet.tsservice.Prompts & Workflows
interact_with_contractPrompt: Guided workflow for safe contract interactions.Breaking Changes
Closes #6
Closes #9
Closes #17